﻿﻿@model IEnumerable<verk2013_project_group12.Models.UserProfile>

<div class="playerList">
    <h2></h2>
    <table id="pList">
        <caption id="pHead"><a href="@Url.Action("PlayerList", "Home")">List of players</a></caption>
        <thead>
            <tr>
                <th>Name</th>
            </tr>
        </thead>
        <tbody>
    @foreach (var user in Model)
    {
            <tr>
                <td>@Html.ActionLink(user.UserName, "Profile", new { id = user.UserId })</td>
            </tr>
    }
        </tbody>
    </table>
</div>